package web.vo;

import java.util.List;

public class PageVo<T> {
    private List<T> data;
    /**
     * 数据一共有多少条
     */
    private Integer count;
    /**
     * 一页有多少数据
     */
    private Integer pageSize;
    /**
     * 当前数据是第几页
     */
    private Integer pageNo;
    /**
     * 一共有多少页
     */
    private Integer pageCount;

    public List<T> getData() {
        return data;
    }

    public void setData(List<T> data) {
        this.data = data;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public Integer getPageNo() {
        return pageNo;
    }

    public void setPageNo(Integer pageNo) {
        this.pageNo = pageNo;
    }

    public Integer getPageCount() {
        return pageCount;
    }

    public void setPageCount(Integer pageCount) {
        this.pageCount = pageCount;
    }

    @Override
    public String toString() {
        return "PageVo{" +
                "data=" + data +
                ", count=" + count +
                ", pageSize=" + pageSize +
                ", pageNo=" + pageNo +
                ", pageCount=" + pageCount +
                '}';
    }
}
